import { get, post } from './http'

export const ajax = {
    //注册
    userRegister: (body) => post('/vue/register', body),

    //密码登录
    userLogin: (body) => post('/vue/login', body),

    //获取验证码
    getCode: (params) => get('/vue/code', params),

    //验证码登录
    sendCode: (params) => get('/vue/verify', params),

    //token获取用户信息
    getuserinfo: (params) => get('/vue/getuserinfo', params),

    //上传头像
    uploadavatar: (params) => post('/vue/uploadavatar', params),

    //wruru获取数据
    getWruru: (params) => get('/vue/wruru', params),

    //wruru搜索数据
    getWruruSearch: (params) => get('/vue/search', params),

    //wruru商品列表数据接口
    getWruruGoodslist: (params) => get('/vue/goodslist', params),

    //wruru商品列表数据升序
    getWruruGoodslistup: (params) => get('/vue/goodslistup', params),
    //wruru商品列表数据降序
    getWruruGoodslistdown: (params) => get('/vue/goodslistdown', params),
    //wruru商品列表数据关键字
    getWruruGoodslistkey: (params) => get('/vue/goodslistkey', params),

    //wruru商品详情
    getWruruGoodsdetail: (params) => get('/vue/goodsdetail', params),

      //wruru购物车添加
      insertCart: (params) => get('/vue/cart', params),
      //wruru购物车获取
      getCart: (params) => get('/vue/cartgoods', params),
        //wruru购物车修改数据
        setCart: (params) => get('/vue/cartchange', params),
        //wruru购物车删除数据
        deletCart: (params) => get('/vue/cartdelet', params),
          //wruru购物车删除所有数据
          deletCartAll: (params) => get('/vue/cartdeletall', params),
       //wruru购物车修改选中状态
       setCartCheck: (params) => get('/vue/cartchoose', params),
        //wruru购物车获取给结算
      getCartCash: (params) => get('/vue/cartgoodscash', params),

        //wruru详情页立即购买
        imbuy: (params) => get('/vue/imbuy', params),

          //wruru地址添加
          setAddress: (params) => post('/vue/address', params),
           //wruru地址获取
           getAddress: (params) => get('/vue/alladdress', params),

            //wruru一个地址获取
            getOneAddress: (params) => get('/vue/alladdressone', params),
            //wruru删除地址
            deleteOneAddress: (params) => get('/vue/deleteaddress', params),

            //wruru付款
            payforit: (params) => get('/vue/cartdeletcheck', params),
          
            
          
   
}